package com.xiaoshuidi.cloud.module.rooms.controller.admin.equipmentStocktaking.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @Description:
 * @Author: Link
 * @CreateTime: 2023-05-21 18:04
 * @Version: 1.0
 */
@Data
@Schema(description = "盘点单管理 - 创建 Request VO")
@ToString(callSuper = true)
public class EquipmentStocktakingCreateReqVO {

    @Schema(description = "盘点人ID")
    @NotNull(message = "盘点人不能为空")
    private Long checkedBy;

    @Schema(description = "盘点人姓名")
    private String checkedName;

    @Schema(description = "盘点区域(选到的公寓名称)", example = "华府门店,新加门店,新旺公寓")
    private String invArea;

    @Schema(description = "门店ids")
    private List<Long> apartmentIds;

    @Schema(description = "盘点时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime pdTime;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "部门id")
    private Long deptId;

}
